﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Ccit.OA.MsPersonDoc;
namespace Ccit.OA.PersonDoc
{
    public interface IPersonDoc
    {
        #region 空间设置 
            /// <summary>
            /// 获取空间设置信息
            /// </summary>
            /// <param name="sQuery"></param>
            /// <returns></returns>
            DataSet GetPersonDocSpaceMess(string sQuery);
            /// <summary>
            /// 设置空间大小
            /// </summary>
            /// <param name="Ms"></param>
            /// <returns></returns>
        List<string> DoOperateSpace(MsPersonDocSpace Ms);

        /// <summary>
        /// 空间用户信息
        /// </summary>
        /// <returns></returns>
            string DoOperateSpaceUser();
        #endregion

           
            #region 文件夹信息

            /// <summary>
        /// 保存文件夹信息
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
            List<string> DoSaveFloderMess(MsFolder ms);
        /// <summary>
        /// 返回所有文件夹详细信息
        /// </summary>
        /// <param name="Ms">文件夹夹消息对象</param>
        /// <param name="sQuery">查询条件</param>
        /// <returns></returns>
        DataSet GetPersonDocfolder(MsFolder Ms,string sQuery,String sType);

        /// <summary>
        /// 返回所有文件细信息
        /// </summary>
        /// <param name="Ms">文件消息对象</param>
        /// <param name="sQuery">查询条件</param>
        /// <returns></returns>
        DataSet GetFilesMess(MsFiles Ms,string sType);

        /// <summary>
        /// 删除文件夹及其下边的所有文件
        /// </summary>
        /// <param name="Ms">文件夹消息对象</param>
        /// <returns></returns>
        MsFolder DelFolder(MsFolder Ms);

        /// <summary>
        /// 删除 文件内容
        /// </summary>
        /// <param name="Ms">文件信息消息对象</param>
        /// <returns></returns>
        MsFolder DelFiles(MsFiles Ms);

        MsFiles insertFile(MsFiles Ms);

        /// <summary>
        /// 文件剪切或复制
        /// </summary>
        /// <param name="sFiesId">文件ID串 ,号分隔</param>
        /// <param name="sWork">操作类型 Code复制/Shear剪切</param>
        /// <param name="sType">文件类型串 ,号分隔</param>
        /// <param name="sObjectID">要进行 粘贴的文件夹ID</param>
        /// <param name="sUserId">文件所属用户</param>
        List<string> Fiesmove(string sFiesId, string sWork, string sType, string sObjectID, string sUserId);

        /// <summary>
        /// 检索功能
        /// </summary>
        /// <param name="sQuery">文件查询条件</param>
        /// <param name="sQueryFolder">文件夹查询条件</param>
        /// <returns>返回符合检索条件的数据集合</returns>
        DataSet GetFilesSearch(string sQuery);

        /// <summary>
        ///  //返回所有有共享文件的用户
        /// </summary>
        /// <param name="sQuery">过滤条件</param>
        /// <returns></returns>
        List<string> GetOthPersons(string sQuery);
        #endregion

    }
}
